package cn.aylog.controller;

import cn.aylog.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SomeController {

    @Autowired
    private User user;

    @RequestMapping("/some")
    public String someHandler() {
        return "Hello Spring Boot!";
    }


    @RequestMapping("/user")
    public Object userHandle() {
        return user;
    }

}
